package com.csii.modules.online.cgform.converter.component;

import com.alibaba.fastjson.JSONObject;
import java.util.HashMap;
import java.util.Map;

import com.csii.modules.online.cgform.converter.comment.TextCommentConverter;
import com.csii.modules.online.cgform.entity.OnlCgformField;
import com.csii.modules.online.cgform.table.TableComponent;

public class LinkDownComponentConverter extends TextCommentConverter {
   private String f;

   public String getLinkField() {
      return this.f;
   }

   public void setLinkField(String linkField) {
      this.f = linkField;
   }

   public LinkDownComponentConverter(OnlCgformField var1) {
      String var2 = var1.getDictTable();
      TableComponent var3 = (TableComponent)JSONObject.parseObject(var2, TableComponent.class);
      this.setTable(var3.getTable());
      this.setCode(var3.getKey());
      this.setText(var3.getTxt());
      this.f = var3.getLinkField();
   }

   public Map<String, String> getConfig() {
      HashMap var1 = new HashMap();
      var1.put("linkField", this.f);
      return var1;
   }
}
